package com.zhuozhengsoft.pageoffice6springboot2back.controller;

import com.zhuozhengsoft.pageoffice.PDFCtrl;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;


import javax.servlet.http.HttpServletRequest;


@RestController
@RequestMapping(value = "/OpenImage")
public class OpenImageController {

    @RequestMapping(value = "Image")
    public String showImage(HttpServletRequest request) {
        PDFCtrl poCtrl = new PDFCtrl(request);
        poCtrl.webOpen("/doc/OpenImage/test.jpg");

        return poCtrl.getHtmlCode();
    }

}
